package com.cy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author cy
 * @since 2021-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class Equipment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 器材id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 器材名称
     */
    private String name;

    /**
     * 器材总个数
     */
    private String totalNums;

    /**
     * 借出总个数
     */
    private String rentNums;

    /**
     * 器材分类
     */
    private String typeName;

    /**
     * 器材状态（正常1，停止外借0，逻辑删除2）
     */
    private Integer status;

    public Equipment(Integer id, Integer status) {
        this.id = id;
        this.status = status;
    }
}
